package com.hdl.school.bean;

/**
 * Created by yunjian on 16/10/9.
 */
public class PlanTask implements Cloneable{
    private long id;
    //任务执行时间
    private long time;
    //任务类型 1即时任务   2定时任务 3重新加载新任务
    private int type;
    //文件网络路径
    private String fileUrl;
    private long fileSize;
    //下载状态  0未下载   1下载中   2已下载
    private int downloadStatus;
   //1开始  2结束   3暂停   4继续播放
    private int status;
    private boolean loop;
    private int times;

    private String taskName;

    private int stopOther;

    public int getStopOther() {
        return stopOther;
    }

    public void setStopOther(int stopOther) {
        this.stopOther = stopOther;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public int getDownloadStatus() {
        return downloadStatus;
    }

    public void setDownloadStatus(int downloadStatus) {
        this.downloadStatus = downloadStatus;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public boolean isLoop() {
        return loop;
    }

    public void setLoop(boolean loop) {
        this.loop = loop;
    }


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Object clone(){
        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }
}
